package com.fernfx.xingtan.my.contract;

import android.content.Context;

import com.baidu.mapapi.model.LatLng;
import com.fernfx.xingtan.common.base.BaseModel;
import com.fernfx.xingtan.common.base.BasePresenter;
import com.fernfx.xingtan.common.base.BaseView;
import com.fernfx.xingtan.common.network.IRequestCallback;
import com.fernfx.xingtan.my.entity.UserInfoEntity;

import java.util.Map;

/**
 * Created by admin on 2018/8/13.
 */

public interface MySettingContract {
    interface View extends BaseView{
        void autoObtainCameraPermission();

        void autoObtainStoragePermission();

        void showUserInfo(UserInfoEntity userInfoEntity);

        //七牛token
        void setQiniuToken(String token);

        void updateAvatar(String imgPath);

    }
    interface Presenter extends BasePresenter {
        void showUserLogoDialog(Context context);

        void getQiniuToken();

        void updateAvatar(Map<String,Object> requestArgsMap);

    }

    interface Model extends BaseModel{
        void getQiniuToken(IRequestCallback iRequestCallback);

        void updateAvatar(Map<String,Object> requestArgsMap,IRequestCallback iRequestCallback);
    }
}
